package Demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-07-27
 * Time: 19:47
 */
public class Test {
    public static void main(String[] args) {
        BinarySearchTree tree = new BinarySearchTree();
        tree.addNode(4);
        tree.addNode(2);
        tree.addNode(1);
        tree.addNode(3);
        tree.addNode(6);
        tree.addNode(5);
        tree.addNode(7);
        tree.removeNode(4);
        System.out.println();
    }
}
